package cn.jyc.ssm03.ctrl;

import cn.jyc.ssm03.pojo.CustCount01;
import cn.jyc.ssm03.service.CustCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class EchartsCtrl {
    @Autowired
    private CustCountService ccs;

    @ResponseBody
    @RequestMapping("/custCount01")
    public List<CustCount01> qry01(){
        return ccs.qry01();
    }

    @ResponseBody
    @RequestMapping("/custCount02")
    public List<CustCount01> qry02(){
        return ccs.qry02();
    }

    @ResponseBody
    @RequestMapping("/custCount03")
    public List<List<Object>> qry03(){
        return ccs.qry03();
    }

    @ResponseBody
    @RequestMapping("/custCount04")
    public List<List<Object>> qry04(String bgdt,String fndt){
        return ccs.qry04(bgdt,fndt);
    }
}
